<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<%@taglib uri="http://www.springframework.org/tags/form" prefix="form"%>
<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>Insert title here</title>
</head>
<body>
	<form:form method="get" commandName="CommandExecutorModel" action="executeCommand.htm">
		<table class="containertable">
			<tr>
				<td><form:label path="commandString">Commands :</form:label></td>
				<td width="50"><form:textarea class="valuestring1" path="commandString" colspan="20" /></td> 
			</tr>
			<tr>
				<td></td>
				<td></td>
				<td colspan="2"><input class ="containersubmit" type="submit" value="Execute" name="Execute" /></td>
				<td colspan="2"><input class ="containersubmit" type="submit" value="Clear" name="Clear" /></td>
			</tr>
		</table>
		
		<div class="datapanel" align="justify"><strong> <span class="orangetitle">Command Execution History</span> <span class="bodytext"><br /></span> </strong>
			<table class="column-options">
				<tr>
					<th>Token & Command</th>
					<th>Input Values</th>
					<th>Execution Results</th>
				</tr>
				<tr></tr>
				<c:forEach var="CommandExecutorView" items="${CommandExecutorViewCollection}">
					<tr>
						<td>${CommandExecutorView.command}</td>
						<td>${CommandExecutorView.value}</td>
						<td>${CommandExecutorView.result}</td>
						<td><a href="#" name="Delete" class="button">Delete</a></td>
					</tr>
				</c:forEach>
			</table>
		</div>
		
	</form:form>
</body>
</html>